package cn.tedu.ssm.controller;


import cn.tedu.ssm.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("user")
public class UserController {
    @Autowired
    private UserService service;
    @RequestMapping("list")
    public Map<String,Object> list(Integer page, Integer size){
         return  service.list(page,size);
    }
}
